// 笔试强训day33:跳台阶拓展问题

#include <iostream>
#include <cmath>
using namespace std;

int main() {
    int n = 0; cin >> n;
    cout << pow(2, n - 1) << endl;
}